package com.minivision.fdiot.event;

import java.util.List;

import org.springframework.context.ApplicationEvent;

import com.minivision.fdiot.common.Action;
import com.minivision.fdiot.domain.FaceData;

import lombok.Getter;
import lombok.Setter;

/**
 * 人脸操作事件
 * @author hughzhao
 * @2018年3月1日
 */
@Getter
@Setter
public class FaceUpdateEvent extends ApplicationEvent {

  private static final long serialVersionUID = 8594349589430380748L;
  
  private Action action;
  private String appKey;
  private String facesetToken;
  private List<FaceData> faces;

  public FaceUpdateEvent(Object source, Action action, String appKey, String facesetToken, List<FaceData> faces) {
    super(source);
    this.action = action;
    this.appKey = appKey;
    this.facesetToken = facesetToken;
    this.faces = faces;
  }

}
